package com.homson.coreservice.servicecommon.expection;

import com.homson.coreservice.servicecommon.enumeration.ResponseCodeEnum;
import lombok.Data;

@Data
public class BizException extends Exception{

    private int code;
    private String msg;
    private String errorDetail;

    public BizException(int code, String msg, String errorDetail) {
        this.code = code;
        this.msg = msg;
        this.errorDetail = errorDetail;
    }
    
    public BizException(String msg){
        this.code= ResponseCodeEnum.BIZ_ERROR.getCode();
        this.msg=msg;
    }
}
